function defense_mob_api.library.damage(self, amount)
	local hp = self.object:get_hp()
	if hp <= amount then
		self:die()
	else
		self.object:set_hp(hp - amount)
	end
end
